<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>Layer.setDataCombineMethod</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="Layer.htm">Layer</a>.<wbr>setDataCombineMethod</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setDataCombineMethod(int m)
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the method used to combine multiple data sets in a layer.<br><br>
This method is used only for layers that can combine multiple data sets in different ways. Some layers can only support a subset of the data combine methods defined below.<br><br>
<div style="width:100%;box-sizing:border-box;"><table width="100%" border="1" cellpadding="5" cellspacing="0"> <tr><th width="19%">Constant<th width="19%%">Value<th>Description <tr><td><a href="Chart.Side.htm">Side</a><td>3<td> The data sets are combined by plotting the data representation side by side. <tr><td><a href="Chart.Stack.htm">Stack</a><td>1<td> The data sets are combined by stacking up their data representations. <tr><td><a href="Chart.Overlay.htm">Overlay</a><td>0<td> The data sets are combined by drawing them independently, overlapping each others. <tr><td><a href="Chart.Percentage.htm">Percentage</a><td>4<td> The data sets are combined similar to the <b>Stack</b> method, except that the data is scaled so that each stack always summed up to 100. In other words, the region that a data item occupies in a stack represents the percentage of the data item relative to sum of all the data items in the stack. </table></div>
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>m</td><td>(Mandatory)</td><td>one of the predefined constants representing the data combine method to use.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
